/*
 ============================================================================
 Page	     : 159-160
 Name        : do_while.c
 Date	     : 20210403
 Author      : Hbue 18060333
 Copyright   : Your copyright notice
 Description : 出口条件循环
 ============================================================================
 */

#include <stdio.h>

int main(void)
{
	const int secret_code = 13;
	int code_entered = 0;
	do
	{
		printf("To enter the triskaidekaphobia therapy club,\n");
		printf("please enter the secret code number: ");
		scanf("%d", &code_entered);
	}while(code_entered != secret_code);

	printf("Congratulations! You are cured!\n");
	
	return 0;
}

